//
//  HotVehicleModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/10/11.
//

import UIKit
import ObjectMapper

class HotVehicleModel: Mappable {
    var code: String?
    var msg: String?
    var data: [VehicleLisetModel]?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) {
        
    }
}

class HotVehicleDataModel: Mappable {
    
    var favoriteBlock: (()->Void)?//是否收藏
    
    var id: NSInteger?
    var backgroundImage: String?
    var name: String?
    var price: Double?
    var orderPrice: Double?
    var isSpecial: Bool?//是否是特价
    var originalPrice: Double?
    var favorite: Bool?//是否收藏
    func mapping(map: Map) {
        id <- map["id"]
        backgroundImage <- map["backgroundImage"]
        name <- map["name"]
        price <- map["price"]
        orderPrice <- map["orderPrice"]
        isSpecial <- map["isSpecial"]
        originalPrice <- map["originalPrice"]
        favorite <- map["favorite"]
    }
    required init?(map: Map) {
        
    }
}
